package com.example.qimo.Fragment;

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.drawerlayout.widget.DrawerLayout;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
import com.example.qimo.R;
import com.google.android.material.navigation.NavigationView;

import jp.wasabeef.glide.transformations.BlurTransformation;

public class Head extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.nav_header);
        ImageView h_back=findViewById(R.id.h_back);
        //设置头像背景磨砂效果
        Glide.with(Head.this).load(R.drawable.headpo)
                .bitmapTransform(new BlurTransformation(Head.this, 25), new CenterCrop(Head.this))
                .into(h_back);
    }

}
